package dryven.unittest.validation.mockup;

import dryven.model.validation.ValidationFieldDescription;

public class ValidatorFieldDescriptionMockup implements ValidationFieldDescription {

	private boolean required;
	private int maxLength;
	private String name;
	private Class<?> type;
	
	public ValidatorFieldDescriptionMockup(boolean required, int maxLength,
			String name, Class<?> type) {
		super();
		this.required = required;
		this.maxLength = maxLength;
		this.name = name;
		this.type = type;
	}

	@Override
	public int getMaxLength() {
		return maxLength;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Class<?> getValueType() {
		return type;
	}

	@Override
	public boolean isRequired() {
		return required;
	}
	
}